﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CanTIceCream
{
    public class IceMake
    {
        private static IceMake instance;
        private IceMake() { }
        public static IceMake Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IceMake();
                }
                return instance;
            }
        }
        public string Making { get; set; } = "AA 00 02 00 00 00 06 00 01 00 ";
    }
    public class IceModel
    {
        private static IceModel instance;
        private IceModel() { }
        public static IceModel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IceModel();
                }
                return instance;
            }
        }
        /// <summary>
        /// 控制模式 01 自动 02 手动
        /// </summary>
        public string IsKZMS { get; set; } = "";
        /// <summary>
        /// 工作状态 01 空闲 02 忙碌
        /// </summary>
        public string IsGZZT { get; set; } = "";
        /// <summary>
        /// 设备状态 01 正常 02 异常
        /// </summary>
        public string IsSBZT { get; set; } = "";
        /// <summary>
        /// 取餐口状态 01 空闲 02 有雪糕待取
        /// </summary>
        public string IsQCKZT { get; set; } = "";
        /// <summary>
        /// 设备状态明细（报警）
        /// </summary>
        public string IsSBZTMXBJ { get; set; } = "";
        /// <summary>
        /// 设备状态明细（故障）
        /// </summary>
        public string IsSBZTMXGZ { get; set; } = "";
        /// <summary>
        /// 当前流程状态
        /// </summary>
        public string IsDQLCZT { get; set; } = "";
        /// <summary>
        /// 雪糕机本体状态
        /// </summary>
        public string IsXGJBTZT { get; set; } = "";
        /// <summary>
        /// 当前成型百分比
        /// </summary>
        public string IsDQCXBFB { get; set; } = "";
        /// <summary>
        /// 当前定量出料时间
        /// </summary>
        public string IsDQDLCLSJ { get; set; } = "";
        /// <summary>
        /// 当前缺料时允许个数
        /// </summary>
        public string IsDQQLSYXGS { get; set; } = "";
        /// <summary>
        /// 当前累计出料得个数
        /// </summary>
        public string IsDQLJCLDGS { get; set; } = "";
        /// <summary>
        ///复位完成标志
        /// </summary>
        public string IsFWWCBZ { get; set; } = "";

    }
    public class IceBJ
    {
        private static IceBJ instance;
        private IceBJ() { }
        public static IceBJ Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IceBJ();
                }
                return instance;
            }
        }
        /// <summary>
        /// 顾客取餐超时
        /// </summary>
        public bool IsGKQCCS { get; set; } = true;
        /// <summary>
        /// 雪糕机缺料
        /// </summary>
        public bool IsXGJCL { get; set; } = true;
        /// <summary>
        /// 1号落杯器缺杯
        /// </summary>
        public bool IsLBQQB1 { get; set; } = true;
        /// <summary>
        /// 2号落杯器缺杯
        /// </summary>
        public bool IsLBQQB2 { get; set; } = true;
        /// <summary>
        /// 雪糕机E11错误，压机高压报警
        /// </summary>
        public bool IsYJGYBJ { get; set; } = true;
        /// <summary>
        /// 果碎1缺料
        /// </summary>
        public bool IsGSQL1 { get; set; } = true;
        /// <summary>
        ///果碎2缺料
        /// </summary>
        public bool IsGSQL2 { get; set; } = true;
        /// <summary>
        /// 果碎3缺料
        /// </summary>
        public bool IsGSQL3 { get; set; } = true;
        /// <summary>
        /// 果酱1缺料
        /// </summary>
        public bool IsGJQL1 { get; set; } = true;
        /// <summary>
        /// 果酱2缺料
        /// </summary>
        public bool IsGJQL2 { get; set; } = true;
        /// <summary>
        /// 果酱3缺料
        /// </summary>
        public bool IsGJQL3 { get; set; } = true;
        /// <summary>
        /// 门未关
        /// </summary>
        public bool IsMWG { get; set; } = true;
        /// <summary>
        /// 回原失败
        /// </summary>
        public bool IsHYSB { get; set; } = true;
        /// <summary>
        /// 点餐屏状态 1亮屏  0息屏
        /// </summary>
        public bool IsDCPZT { get; set; } = true;
    }
    public class IceGJ
    {
        private static IceGJ instance;
        private IceGJ() { }
        public static IceGJ Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new IceGJ();
                }
                return instance;
            }
        }
        /// <summary>
        ///1号落杯器无杯
        /// </summary>
        public bool IsLBQWB1 { get; set; } = true;
        /// <summary>
        ///2号落杯器无杯
        /// </summary>
        public bool IsLBQWB2 { get; set; } = true;
        /// <summary>
        /// 两个落杯器都无杯
        /// </summary>
        public bool IsLBQWBALL { get; set; } = true;
        /// <summary>
        /// 未进入制冷状态
        /// </summary>
        public bool IsWJZLZT { get; set; } = true;
        /// <summary>
        /// 雪糕机无料
        /// </summary>
        public bool IsXGJWL { get; set; } = true;
        /// <summary>
        /// 雪糕机故障
        /// </summary>
        public bool IsXGJGZ { get; set; } = true;
        /// <summary>
        ///雪糕机掉线
        /// </summary>
        public bool IsXGJDX { get; set; } = true;
        /// <summary>
        /// 雪糕机出料超时
        /// </summary>
        public bool IsXGJCLCS { get; set; } = true;
        /// <summary>
        /// 光栅有障碍物
        /// </summary>
        public bool IsGSYZAW { get; set; } = true;
        /// <summary>
        ///电爪运行中无杯子
        /// </summary>
        public bool IsDZYXZWBZ { get; set; } = true;
        /// <summary>
        /// 旋转台旋转电机报警
        /// </summary>
        public bool IsXZTXZDJBJ { get; set; } = true;
        /// <summary>
        /// 旋转台升降电机报警
        /// </summary>
        public bool IsXZTSJDJBJ { get; set; } = true;
        /// <summary>
        /// 门升降电机报警
        /// </summary>
        public bool IsMSJDJBJ { get; set; } = true;
        /// <summary>
        /// 餐口杯子下滑失败
        /// </summary>
        public bool IsCKBZXHSB { get; set; } = true;
        /// <summary>
        /// 旋转台旋转超时
        /// </summary>
        public bool IsXZTXZCS { get; set; } = true;
    }
}
